import request from "./request";

export function getFirstClassify(params) {// 选择考试
    return request({
        url: `/home/getFirstClassify`,
        method: 'get',
        params
    })
}
export function getClassify(classify_id, params) {// 选择考试
    return request({
        url: `/home/getMajor/${classify_id}`,
        method: 'get',
        params
    })
}
export function navigation(id, params) {// 首页tab
    return request({
        url: `/home/getSecondClassify/${id}`,
        method: 'get',
        params
    })
}
export function getTabList(id, params) {// 切换页面数据
    return request({
        url: `/home/classifyCourse/${id}`,
        method: 'get',
        params
    })
}
export function getTabLists(id, params) {// 切换页面数据
    return request({
        url: `/home/classifyCourse/${id}`,
        method: 'get',
        params
    })
}
export function getBanner(id, params) {// 首页轮播图
    return request({
        url: `/home/banner/${id}/4`,
        method: 'get',
        params
    })
}
export function getTime(params) {// 获取时间线
    return request({
        url: `/home/operateConfig`,
        method: 'get',
        params
    })
}
export function getPublic(id, params) {// 公开课
    return request({
        url: `/home/marketingCourse/${id}`,
        method: 'get',
        params
    })
}
export function getRecommended(id, params) {// 推荐好课
    return request({
        url: `/home/recommendCourse/${id}`,
        method: 'get',
        params
    })
}
export function getDetail(id) {// 详情页
    return request({
        url: `/courseInfo/basis_id=${id}/st=0`,
        method: 'get',
    })
}
export function getcollect(data) {// 加入收藏
    return request({
        url: `/collect`,
        method: 'post',
        data
    })
}
export function getLogin(params) {// 登录页
    return request({
        url: `/webConfig`,
        method: 'get',
        params
    })
}
export function getmobile(data) {//手机验证码
    return request({
        url: `/getsmscode`,
        method: 'post',
        data
    })
}
export function getverificationCode(params) {// 验证码
    return request({
        url: `/getImgCode`,
        method: 'get',
        params
    })
}
export function getlogin(data) {// login
    return request({
        url: `/login`,
        method: 'post',
        data
    })
}




